Re: Race conditions

Jason Matthews (jason@dickory.sdsu.edu)
Thu, 8 Dec 1994 02:41:29 -0800 (PST)

On Wed, 7 Dec 1994, Michael Bresnahan wrote:

> How does one code a suid program so that it evades these problems with
> symlink race conditions?  Is there a way to atomically check if a file
> is a symlink and open it, or is there another stratedgy?


Simply do not use any temporary files...

Jason

----------------------------------------------------------------------------
jason@dickory.sdsu.edu			  San Diego State University
jason@mentor.sdsu.edu   		    College of Engineering
jason@BOOM.extern.ucsd.edu               Electrical*Computer Engineering 
----------------------------------------------------------------------------
	  The following email address are no longer valid
	              odn@LoD.amaranth.com
----------------------------------------------------------------------------